package com.efast.dmom.mgmt.controller.mes;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.bean.mes.order.WorkOrderItem;
import com.efast.dmom.mgmt.service.mes.TwBasWorkOrderItemService;

@Controller
@RequestMapping(value = "/twBasWorkOrderItem")
public class TwBasWorkOrderItemController {

	@Autowired
	private TwBasWorkOrderItemService twBasWorkOrderItemService;
	
	//工单详情计划排序
	@RequestMapping(value = "/workOrderItemSort")
	public @ResponseBody ResultBean workOrderItemSort(@RequestBody Map<String, Object> map) {
		ResultBean resultBean = twBasWorkOrderItemService.workOrderItemSort(map);
		return resultBean;
	}
	
	//工单详情修改
	@RequestMapping(value = "/workOrderItemEdit")
	public @ResponseBody ResultBean workOrderItemEdit(@RequestBody WorkOrderItem workOrderItem) {
		ResultBean ResultBean=twBasWorkOrderItemService.workOrderItemEdit(workOrderItem);
		return ResultBean;
		}
}
